package com.edu.boot301demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@Controller
public class InitController {
    @GetMapping("/init")
    @ResponseBody
    public String index() {
        return "Hello, Spring Boot 3.0!";
    }

    @GetMapping("/index")
    public String welcome() {
        return "index";
    }
}
